<?php
	/* Description: This file is used to add sub sub category. */
	#########IncludeFiles####################################################################################
	include_once '../inc/config.php';
	include_once("../inc/bootstrape.php");
	require_once _SITE_PATH_.'classes/Vendor/Vendor.php';
	require_once _SITE_PATH_.'classes/Master/Master.php';
	require_once _SITE_PATH_.'classes/CommonUtility/CommonUtility.php';

    $tableName = 'attribute_master';
    $uniqueColum = 'title';
    $moduleName = 'master';
    $manageScript = 'attribute_mng.php';
    $currentPage = 'attribute_mng.php';
    $_tplName = 'master/attribute_add.tpl';
    $_title = 'Add Master Attribute';

	if( $_POST['submit']=='Submit'){   
		$parms['title'] = $_POST['title'];
		$parms['description'] = $_POST['description'];
        $parms['added'] = date('Y-m-d');
					
		if( CommonUtility::insertData($parms, $tableName)) {
			header("Location: $manageScript"."?msg=104");            
			exit;
		}
		$err = 105;    
	}

	$editor = CommonUtility::includeEditor();
	
	$errMsg = $err;
	require_once _ADMIN_TPL_MAIN_;
?>